package com.jiazhong.service;

import com.jiazhong.pojo.Book;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
//BookService:底下需要去实现 调用dao层
public interface BookService {
    //增加一个book
    int addBook(Book book);
    //根据id删除一个book
    int deleteBookById(int id);
    //更新book
    int updateBook(Book book);
    //根据id查询，返回一个book
    Book queryBookId(int id);
    //查询全部Book，返回List集合
    List<Book> queryAllBook();

}
